package com.study.demo.service;

import com.study.demo.course.SpecializedCourse;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Bean;
import org.springframework.stereotype.Service;

@Service
public class CourseService2 {
    @Autowired
    private SpecializedCourse specializedCourse;

    // 想要获取到原来的内容，发现已经被修改了
    public SpecializedCourse getSpecializedCourse() {
        System.out.println(specializedCourse.toString());;
        return specializedCourse;
    }
}
